#pragma once

#include <string>
#include <vector>

#include "API.h"

namespace snake
{

  /// Encodes given message into array of bytes for transfer over the network
  SNAKE_API std::vector<char> StringToBytes(const std::string &string);

  /// Encodes given message into array of bytes for transfer over the network
  /// This version is for unicode strings
  SNAKE_API std::vector<char> StringToBytes(const std::wstring &string);

  /// Decodes message from array of bytes that came over the network
  SNAKE_API std::wstring StringFromBytes(const std::vector<char> &bytes);

}